import { http, jumpExport } from '@/utils/http/axios';

// 获取轮播管理列表
export function List(params) {
  return http.request({
    url: '/lunbo/list',
    method: 'get',
    params,
  });
}

// 删除/批量删除轮播管理
export function Delete(params) {
  return http.request({
    url: '/lunbo/delete',
    method: 'POST',
    params,
  });
}

// 添加/编辑轮播管理
export function Edit(params) {
  return http.request({
    url: '/lunbo/edit',
    method: 'POST',
    params,
  });
}

// 获取轮播管理指定详情
export function View(params) {
  return http.request({
    url: '/lunbo/view',
    method: 'GET',
    params,
  });
}

// 获取轮播管理最大排序
export function MaxSort() {
  return http.request({
    url: '/lunbo/maxSort',
    method: 'GET',
  });
}

// 导出轮播管理
export function Export(params) {
  jumpExport('/lunbo/export', params);
}